<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看安装程序</title>
    <link rel="stylesheet" href="${ctx}/assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="${ctx}/assets/css/app.css">
    <link rel="stylesheet" href="${ctx}/assets/css/layer.css">
    <link rel="stylesheet" href="${ctx}/assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="${ctx}/assets/css/taskAlgorithmSettingByBatchTasks.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/assets/css/xcConfirm.css"/>
</head>
<body>
<div class="form-main">
    <input type="hidden" id="task_number">
    <div class="form-header">
        <h3 id="y-title">查看安装程序</h3>
    </div>
    <hr>
    <input id="hostIP" type="hidden" />
    <div class="content" id="param_form" style="width:600px">

    </div>
    <hr>
    <!-- <div class="action mr20" style="float: right;" id="closeIframe">
        <ul class="actions-btn"><li class="green">取消</li></ul>
    </div> -->
    <!-- <div class="action mr20" style="float: right;" id="saveSetting">
        <ul class="actions-btn"><li class="green">确定</li></ul>
    </div> -->
</div>
<script src="${ctx}/assets/js/jQuery/jquery-1.9.1.js"></script>
<script src="${ctx}/assets/js/jQuery/jquery.min.js"></script>
<script src="${ctx}/assets/js/common/common.fun.js"></script>
<script src="${ctx}/assets/js/common/config.js"></script>
<script src="${ctx}/assets/js/common/bootstrap.js"></script>
<script src="${ctx}/assets/js/common/xcConfirm.js"></script>
<script src="${ctx}/assets/js/layer/layer.js"></script>

<script>
    $(function () {
    	var hostIP = GetQueryString("hostIP");
    	$.ajax({
            type:"GET",
            url:constUrl+"ws/remote/app/check",
            dataType:"json",
            data: {
                IP:hostIP
            },
            success:function(data){
            	console.log(data);
            	if(data.desc=="SUCCESS"){
            	//$("#param_form").html(data.data);
            	var rows = data.data.split("#");
            	if(rows.length>1){
            	
            	}else{
            		$("#param_form").html(data.data);
            		return;
            	}
            	for(var i=0;i<rows.length;i++){
            		if(rows[i]==""|| rows[i]==null){
            			break;
            		}
            				var dom = "<div><p>程序："+rows[i]+"</p></div>"
            				$("#param_form").append(dom);
            				}
            	}else{
            		alert("ERROR");
            	}},error:function(data){
                	alert("URL ERROR");
                }
        });
    });
</script>
</body>
</html>